
<!doctype html>

<html class="no-js fixed-layout">


<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>管理系统</title>

    <meta name="description" content="这是一个 index 页面">

    <meta name="keywords" content="index">

    <meta name="renderer" content="webkit">

    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=0.3, maximum-scale=1.0,
    minimum-scale=0.3">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/css/amazeui.min.css"/>

    <link rel="stylesheet" href="/css/admin.css">

    <script src="/js/handlebars.min.js"></script>

    <script src="/js/amazeui.widgets.helper.js"></script>

    <script src="/js/amazeui.ie8polyfill.min.js"></script>

    <script src="/js/jquery.min.js"></script>

    <script src="/js/echarts.js"></script>

    <script src="/js/clipboard.1.5.15.min.js"></script>
    <!-- <script src="/static/js/highcharts.js"></script> -->

    <script src="/js/amazeui.min.js"></script>

    <script src="/js/app.js"></script>

    <link rel="stylesheet" href="/jedate.css?v=1.0.0">
    <script src="//jedate.js"></script>

    <link rel="stylesheet" href="/css/model.css">
    <link rel="stylesheet" href="/css/dio.css">
    <meta charset="utf-8">

    </body>

</head>
<body>

<!--[if lte IE 9]>

<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>

    以获得更好的体验！</p>

<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header" style="background: #F37B1D;    border-color: #F37B1D;">

    <div class="am-topbar-brand">

        <strong>APP</strong>
        <small>后台管理系统</small>

    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
            data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span
                class="am-icon-bars"></span></button>


    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">

            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span
                            class="admin-fullText">liutao，欢迎您 </span></a></li>

            <li class="am-dropdown" data-am-dropdown>

                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">

                    <span class="am-icon-users"></span> 刘涛 <span
                            class="am-icon-caret-down"></span>

                </a>

                <ul class="am-dropdown-content">

                    <!--<li><a href="#"><span class="am-icon-user"></span> 资料</a></li>-->

                    <li><a href="/member/edit?mid=459"><span class="am-icon-cog"></span> 修改密码</a></li>

                    <li><a href="/login/quit"><span class="am-icon-power-off"></span> 退出</a></li>

                </ul>

            </li>

            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span
                            class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>

        </ul>

    </div>

</header>


<div class="am-modal am-modal-no-btn" tabindex="-1" id="Jump_prompt-1">

    <div class="am-modal-dialog">

        <div class="Jump_prompt">

            操作失败

        </div>

    </div>

</div>
<div class="am-cf admin-main">
    <!-- sidebar start -->
    <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
        <div class="am-offcanvas-bar admin-offcanvas-bar">
            <ul class="am-list admin-sidebar-list">
                                                                                <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav0'}"><span
                                        class=" am-icon-sm"></span> 用户管理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav0">

                                
                                    <li><a href="/realUser/userList"><span
                                                    class=" "></span> 用户列表 </a>
                                    </li>
                                
                                    <li><a href="/user/applyFreeCodeList"><span
                                                    class=" "></span> 邀请码 </a>
                                    </li>
                                
                                    <li><a href="/order/orderList"><span
                                                    class=" "></span> 消费记录	 </a>
                                    </li>
                                
                                    <li><a href="/userScore/list"><span
                                                    class=" "></span> 权重排序	 </a>
                                    </li>
                                
                                    <li><a href="/UserGoddess/getLists"><span
                                                    class=" "></span> 女神认证 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav1'}"><span
                                        class=" am-icon-sm"></span> 合规监管 <span
                                        class="am-icon-star admin-icon-yellow am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub am-in"
                                id="collapse-nav1">

                                
                                    <li><a href="/realUser/photoList"><span
                                                    class=" "></span> 相册图片审核                                             <span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span></a></a>
                                    </li>
                                
                                    <li><a href="/realUser/userVerifyPhotoList"><span
                                                    class=" "></span> 真人认证审核 </a>
                                    </li>
                                
                                    <li><a href="/userAvatar/getList"><span
                                                    class=" "></span> 用户头像审核 </a>
                                    </li>
                                
                                    <li><a href="/userNickname/getList"><span
                                                    class=" "></span> 用户昵称审核 </a>
                                    </li>
                                
                                    <li><a href="/userSignature/getList"><span
                                                    class=" "></span> 用户签名审核 </a>
                                    </li>
                                
                                    <li><a href="/userBackgroundImage/getList"><span
                                                    class=" "></span> 背景图片审核 </a>
                                    </li>
                                
                                    <li><a href="/UserSocialAccountsAudit/getList"><span
                                                    class=" "></span> 社交账号审核 </a>
                                    </li>
                                
                                    <li><a href="/UserVoiceAudit/getList"><span
                                                    class=" "></span> 用户语音审核 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav2'}"><span
                                        class=" am-icon-sm"></span> 投诉处理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav2">

                                
                                    <li><a href="/user/reportManageList"><span
                                                    class=" "></span> 匿名投诉处理 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav3'}"><span
                                        class=" am-icon-sm"></span> 聊天管理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav3">

                                
                                    <li><a href="/chat/chatHistory"><span
                                                    class=" "></span> 聊天历史 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav4'}"><span
                                        class=" am-icon-sm"></span> 社区审核 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav4">

                                
                                    <li><a href="/plaza/showList"><span
                                                    class=" "></span> 动态审核 </a>
                                    </li>
                                
                                    <li><a href="/plaza/commentList"><span
                                                    class=" "></span> 评论审核 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav5'}"><span
                                        class=" am-icon-sm"></span> 分享有奖 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav5">

                                
                                    <li><a href="/share/shareList"><span
                                                    class=" "></span> 邀请列表 </a>
                                    </li>
                                
                                    <li><a href="/share/applyList"><span
                                                    class=" "></span> 申请列表 </a>
                                    </li>
                                                            </ul>
                        </li>
                                    
            </ul>

            <div class="am-panel am-panel-default admin-sidebar-panel">

                <div class="am-panel-bd">

                    <p><span class="am-icon-bookmark"></span></p>

                    <p><span style="size:12px;">将相本无主，男儿当自强！</span></p>

                </div>

            </div>


        </div>

    </div>


    <!-- sidebar end --><!-- content start -->

<div class="admin-content">

    <div class="admin-content-body">

        <div class="am-cf am-padding am-padding-bottom-0">

            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">用户列表</strong>&nbsp;&nbsp;/&nbsp;<small>
                    相册
                </small>
            </div>

        </div>

        <hr/>

        <div class="am-g">
            <div class="am-u-md-12">
                <select style="height: 27px" id="verify_status" name="status">
                    <option value='-1'>全部</option>
                    <option selected value=0>未审核</option><option value=1>已通过</option><option value=2>已拒绝</option>                </select>
                <select style="height: 27px" id="gender" name="gender">
                    <option value='2'>全部</option><option value=0>男</option><option value=1>女</option>                </select>
                <select style="height: 27px" id="internal" name="internal">
                    <option selected value=0>正常号</option><option value=1>内部号</option>                </select>
                <select style="height: 27px" id="user_verify_status" name="user_verify_status">
                    <option selected value=1>已认证</option><option value=0>未认证</option><option value=-1>全部</option>                </select>
                <input type="text" placeholder="昵称/用户ID" name="keyword" value="">
                <button class="am-btn am-btn-default search" type="button">搜索</button>
                <button class="am-btn am-btn-default" type="button" id="batch" value="1">批量通过</button>
            <div>
                            <div class=" am-u-md-12">
                <span>当日新增: 401</span>
                <span>当日通过: 0</span>
                <span>当日拒绝: 0</span>
                <span>累计通过: 0</span>
                <span>累计拒绝: 0</span>
            </div>
                            <br/>

            <div class="am-g">

                <div class="am-u-sm-12">

                    <form class="am-form">

                        <table class="am-table am-table-striped am-table-hover table-main">

                            <thead>

                            <tr>
                                <th class="table-title" style="width: 50px">复选</th>
                                <th class="table-title" style="width: 50px">序号</th>
                                <th class="table-title">用户ID</th>
                                <th class="table-title" style="width: 70px">内部号</th>
                                <th class="table-title">昵称</th>
                                <th class="table-title" style="width: 50px">性别</th>
                                <th class="table-title">图片</th>
                                <th class="table-title">真人认证</th>                                <th class="table-title">是否显示</th>
                                <th class="table-title">是否本人</th>
                                <th class="table-title">提交时间</th>
                                <th class="table-title">审核状态</th>
                                <th class="table-title">审核历史</th>
                                <th class="table-title">操作</th>
                            </tr>

                            </thead>

                            <tbody>

                            
                                <tr>
                                    <td style="width: 50px"><input type="checkbox" checked="checked" value="479332" name="ids" /></td>
                                    <td style="width: 50px">479332</td>
                                    <td>254257465</td>
                                    <td style="width: 70px">
                                        否                                    </td>
                                    <td>
                                        慕紫丫丫                                    </td>
                                    <td style="width: 50px">
                                        女                                    </td>
                                    <td>
                                        <img style='width:200px;height:250px; cursor: crosshair;' onmousewheel="return bbimg(this)" title="鼠标停在此处滑动缩放图片" src=https://city-yueke.oss-cn-shenzhen.aliyuncs.com/album/6/77/6777768B-3EE0-34F8-BBCC-B97C95FD79F2.jpg>                                    </td>
                                    <td><img style='width:200px;height:250px;' src=https://city-yueke.oss-cn-shenzhen.aliyuncs.com/album/B/2E/B2E35A8B-B237-34EA-9BB1-333DD854118B.jpeg></td>                                    <td>显示                                    </td>
                                    <td>本人                                    </td>
                                    <td>2021-08-01 17:27:24</td>
                                    <td>
                                        待审核                                    </td>
                                    <td><a href="javascript:;" onclick="showAuditList(this)" show_id="479332" show_type='1'>查看</a></td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                                                                            <div class="am-btn-group am-btn-group-xs am-text-warning">
                                                    <a href="javascript:;" abc="/realUser/verifyPhotoStatus?id=479332&verify_status=1" class="am-btn am-btn-default am-btn-xs am-text-success am-hide-sm-only verify_status"><span>通过</span></a>&nbsp;&nbsp;
                                                    <a href="javascript:;" abc="/realUser/verifyPhotoStatus?id=479332&verify_status=2" class="am-btn am-btn-default am-btn-xs am-text-warning am-hide-sm-only verify_status"><span>拒绝</span></a>&nbsp;<br/>
                                                </div>
                                                                                                                                                                                                                                <div class="am-btn-group am-btn-group-xs am-text-warning">
                                                    <a href="javascript:;" abc="/realUser/setPhotoSelfStatus?id=479332&verify_status=0" class="am-btn am-btn-default am-btn-xs am-text-warning am-hide-sm-only verify_status"><span>取消本人标识</span></a>
                                                </div>
                                                                                    </div>
                                    </td>

                                </tr>

                            
                            </tbody>

                        </table>

                        <div class="am-cf">

                            共 1 条记录

                            <div class="am-fr">

                                
                            </div>

                        </div>

                    </form>

                </div>

            </div>

        </div>

    </div>
<!-- 查看审核历史 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="showList-model">
    <div class="am-modal-dialog" style="width: 1200px;">
        <div class="am-modal-hd"> 审核历史
        <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd" id="modal-img-list">
            <table class="am-table am-table-striped am-table-hover table-main">
                <thead>
                    <tr>
                        <th class="table-title">模块名称</th>
                        <th class="table-title">id</th>
                        <th class="table-title">操作</th>
                        <th class="table-title">备注</th>
                        <th class="table-title">操作人</th>
                        <th class="table-title">操作时间</th>
                    </tr>
                </thead>
                <tbody class="user-forbidden-list">
                </tbody>
            </table>
        </div>
        <div class="dioConfirm">
            <button onclick="outShowList()" type="button">取消</button>
        </div>
        <input type="hidden" name="showlist_id" id="showlist_id" />
    </div>
</div>
            <!-- 拒绝确认弹框 -->
    <div class="model" style="display: none">
        <div class="modelFlex">
            <div class="modelIn">
                <img onclick="outDio()" class="modelCancel" alt="">
                是否拒绝该相片
                <p class="conDel" id="wrap">
                    <span>备注：</span>
                    <input type="radio" name="typeShow" value="网图" >网图&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="typeShow" value="非本人" >非本人
                </p>
                <p class="conDel">
                    <span>其他备注：</span>
                    <input style="width: 300px" autofocus="autofocus" type="text" placeholder="这里或上面的拒绝原因会推送给用户" id="otherRemark" required>
                    <input  type="hidden"  id="href">
                  </p>
                <div class="dioConfirm">
                    <button onclick="outDio()">取消</button>
                    <button id="dioConBtn" onclick="commit()">确定</button>
                </div>
            </div>
        </div>
    </div>
<script type="text/javascript">
    $(function () {
        $(".tab .tab-item").click(function () {
            $(this).addClass("active").siblings().removeClass("active");
        })
    })

    //确定
    function commit(){
        var href = $('#href').val();
        var typeShow = $('#wrap input[name="typeShow"]:checked').val();
        var otherRemark = $('#otherRemark').val();
        if(!typeShow && !otherRemark){
            alert('备注必须选择其一');return false;
        }
        var href = href + '&typeShow=' + typeShow + '&otherRemark=' + otherRemark;
        $.get(href,function(data){
            $('.Jump_prompt').html(data.msg);
            $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
            setTimeout(function(){
                $('#Jump_prompt-1').modal('close');
                history.go(0);
            },1500);
        }, "json");
    }
    // 弹框出现
    function inDio(obj) {
        $('#href').val(obj);
        $('.model').fadeIn(200);
    }
    // 弹框消失
    function outDio() {
        $('.model').fadeOut(200);
    }

    function showAuditList(obj) {
        id = $(obj).attr("show_id");
        $('#showlist_id').val(id);

        data = new Object();
        data.id = $("#showlist_id").val();
        data.type = $(obj).attr("show_type");
        console.log(data);


        var url = "/auditLog/list";
        $.ajax({
            type: 'POST',
            url: url,
            data: data,
            dataType: "json",
            //在请求之前调用的函数
            beforeSend:function(){
                // console.log(1);
            },
            //成功返回之后调用的函数
            success:function(data){

                if (data.error) {
                    alert(data.msg);
                }else{
                    $(".user-forbidden-list").html('');
                    html = '';
                    $.each(data.data,function (i,item) {
                        html += '<tr>';
                        html += '<th>' + item.type_name + '</th>';
                        html += '<th>' + item.record_id + '</th>';
                        if (item.record_field == 'is_self'){
                            if (item.record_status == 1) {
                                html += '<th>' + '添加本人标识' + '</th>';
                            }else{
                                html += '<th>' + '取消本人标识' + '</th>';
                            }
                        }else{
                            if (item.record_status == 1) {
                                html += '<th>' + '通过' + '</th>';
                            }else{
                                html += '<th>' + '拒绝' + '</th>';
                            }
                        }
                        html += '<th>' + item.note + '</th>';
                        html += '<th>' + item.member_name + '</th>';
                        html += '<th>' + item.create_time + '</th>';
                        html += '</tr>';
                    });
                    $(".user-forbidden-list").append(html);
                    $('#showList-model').modal('open');
                    // $('#showList-model').modal('close');
                }
                
            },
            //调用执行后调用的函数
            complete: function(XMLHttpRequest, textStatus){
               console.warn(XMLHttpRequest.responseText);
               // console.warn(textStatus);
            },
            //调用出错执行的函数
            error: function(){
                //请求出错处理
                console.error('请求失败');
            }
        });

        // $('#showList-model').modal('open');
    }
    

    function outShowList() {
        $('#showList-model').modal('close');
    }
</script>

    <script type="text/javascript">

        function bbimg(o){
            var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
            return false;
        }

        // $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});

        $('.delete').click(function () {

            var href = $(this).attr('abc');

            $.get(href, function (data) {

                $('.Jump_prompt').html(data.msg);

                $('#Jump_prompt-1').modal({closeViaDimmer: false, width: 100});

                setTimeout(function () {

                    $('#Jump_prompt-1').modal('close');

                    history.go(0);

                }, 1500);

            }, "json");

        });


        $('.status').click(function () {

            var href = $(this).attr('abc');

            $.get(href, function (data) {

                $('.Jump_prompt').html(data.msg);

                $('#Jump_prompt-1').modal({closeViaDimmer: false, width: 100});

                setTimeout(function () {

                    $('#Jump_prompt-1').modal('close');

                    history.go(0);

                }, 1500);

            }, "json");

        });

        // 照片人工审核
        $('.verify_status').click(function(){
            var href = $(this).attr('abc');
            if(href.search("verify_status=2") != -1){
                inDio(href);
            }else{
                $.get(href,function(data){
                    $('.Jump_prompt').html(data.msg);
                    $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
                    setTimeout(function(){
                        $('#Jump_prompt-1').modal('close');
                        history.go(0);
                    },1500);
                }, "json");
            }

        });

        $('.search').click(function () {

            var link = $.trim($('input[name="keyword"]').val());
            var status = $.trim($('#verify_status').val());
            var gender = $.trim($('#gender').val());
            var internal = $.trim($('#internal').val());
            var verify_status = $.trim($('#user_verify_status').val());
            if (link != '' || status != '') {
                window.location.href = "/realUser/photoList?keywords=" + link + '&status=' + status + '&gender=' + gender + '&internal=' + internal + '&verify_status=' + verify_status;
            }

        });

        $('#batch').click(function () {

            var obj = document.getElementsByName('ids');
            var check_val = [];
            for (k in obj) {
                if (obj[k].checked)
                    check_val.push(obj[k].value);
            }
            var verify_status = $('#batch').val();

            if (check_val.length != 0) {

                let href = "/realUser/verifyPhotoStatus?verify_status=" +
                    verify_status + '&ids=' + JSON.stringify(check_val);

                $.get(href,function(data){
                    $('.Jump_prompt').html(data.msg);
                    $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
                    setTimeout(function(){
                        $('#Jump_prompt-1').modal('close');
                        history.go(0);
                    },1500);
                }, "json");

            }

        });

    </script>



  <!-- content end -->



<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<footer>

  <hr>

  <p class="am-padding-left">© 2019 AllMobilize, Inc. Licensed under MIT license.</p>

</footer>



</div>



<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<!--[if lt IE 9]>

<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>

<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>

<script src="assets/js/amazeui.ie8polyfill.min.js"></script>

<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->

</html>